<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>

<head>
    <head>
        <meta charset="utf-8">
        <title>商家中心</title>
        <link href="/Public/home/css/base.css" rel="stylesheet" type="text/css">
        <link href="/Public/home/css/seller_center.css" rel="stylesheet" type="text/css">
        <link href="/Public/home/font/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
        <link rel="shortcut icon" type="image/x-icon" href="/public/images/favicon.ico" media="screen" />
        <!--[if IE 7]>
        <link rel="stylesheet" href="font/font-awesome/css/font-awesome-ie7.min.css">
        <![endif]-->
        <script type="text/javascript" src="/Public/home/js/jquery.js"></script>
        <script type="text/javascript" src="/Public/home/js/seller.js"></script>
        <script type="text/javascript" src="/Public/home/js/waypoints.js"></script>
        <script type="text/javascript" src="/Public/home/js/jquery-ui/jquery-ui.min.js"></script>
        <script type="text/javascript" src="/Public/home/js/jquery.validation.min.js"></script>
        <script type="text/javascript" src="/Public/home/js/layer/layer.js"></script>
        <script type="text/javascript" src="/Public/home/js/global.js"></script>
        <script type="text/javascript" src="/Public/home/js/myAjax.js"></script>
        <script type="text/javascript" src="/Public/home/js/myFormValidate.js"></script>
        <script type="text/javascript" src="/Public/home/js/layer/laydate/laydate.js"></script>
        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
        <script src="/Public/home/js/html5shiv.js"></script>
        <script src="/Public/home/js/respond.min.js"></script>
        <![endif]--></head>
    <![endif]-->
</head>

<body>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<header class="ncsc-head-layout w">
    <div class="wrapper">
        <div class="ncsc-admin w252">
            <dl class="ncsc-admin-info">
                <dt class="admin-avatar"><img src="/public/static/images/seller/default_user_portrait.gif" width="32" class="pngFix" alt="" /></dt>
            </dl>
            <div class="ncsc-admin-function">
                <div class="index-search-container">
                    <p class="admin-name"><a class="seller_name" href="">seller</a></p>
                </div>
                <a class="iconshop" href="/index.php/Home/Store/index/store_id/1.html" title="前往店铺"><i class="icon-home"></i>&nbsp;店铺</a>
                <a class="iconshop" href="/index.php/seller/Admin/admin_info/seller_id/1.html" title="修改密码" target="_blank"><i class="icon-wrench"></i>&nbsp;设置</a>
                <a class="iconshop" href="<?php echo U('loginOut/index');?>" title="安全退出"><i class="icon-signout"></i>&nbsp;退出</a></div>
        </div>
        <div class="center-logo">
            <a href="/" target="_blank">
                <img src="/public/static/images/seller/seller_center_logo.png" class="pngFix" alt="" /></a>
            <h1>商家中心</h1>
        </div>
        <nav class="ncsc-nav">
            <dl>
                <dt><a href="/index.php">首页</a></dt>
                <dd class="arrow"></dd>
            </dl>


            <?php if(is_array($menu)): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><dl>
                    <dt><a href="/index.php?s=/Home/<?php echo ($vo["url"]); ?>"><?php echo ($vo["name"]); ?></a></dt>
                    <?php if($vo['list']): ?><dd>
                        <ul>
                            <?php if(is_array($vo["list"])): $i = 0; $__LIST__ = $vo["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li> <a href='/index.php?s=/Home/<?php echo ($v["url"]); ?>'> <?php echo ($v["name"]); ?> </a> </li><?php endforeach; endif; else: echo "" ;endif; ?>

                        </ul>
                    </dd><?php endif; ?>
                    <dd class="arrow"></dd>
                </dl><?php endforeach; endif; else: echo "" ;endif; ?>


        </nav>
    </div>
</header>
<style>
    .w150 {
        margin-right: 35px;
    }

    .w378 {
        display: inline-block !important;
    }

    .di-in {
        display: inline-block !important;
    }

    .w160 {
        width: 160px !important;
    }

    .nscs-table-handle {
        border-right: 1px solid #dedede;
    }
</style>
<div class="ncsc-layout wrapper">
    <div id="layoutLeft" class="ncsc-layout-left">
        <div id="sidebar" class="sidebar">
            <div class="column-title" id="main-nav">
                <span class="ico-goods"></span>
                <h2>流水</h2></div>
            <div class="column-menu">
                <ul id="seller_center_left_menu">
                    <?php if(is_array($leftmenu['list'])): $i = 0; $__LIST__ = $leftmenu['list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class='
                            <?php if($actionurl == $vo[url]): ?>current<?php endif; ?>
                        '>
                            <a href="/index.php?s=/Home/<?php echo ($vo["url"]); ?>"> <?php echo ($vo["name"]); ?></a>
                        </li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
        </div>
    </div>
<div id="layoutRight" class="ncsc-layout-right">
    <div class="ncsc-path"><i class="icon-desktop"></i>商家管理中心</div>
    <div class="main-content" id="mainContent">
        <div class="tabmenu">
            <ul id="tab" class="tab pngFix">

                <li class="
                    <?php if($type==-1): ?>active
                    <?php else: ?> normal<?php endif; ?>
                    " data-val=""><a href="<?php echo U('paylog/index',array('type'=>-1));?>">全部流水</a></li>
                <li class="
                    <?php if($type==20): ?>active
                    <?php else: ?> normal<?php endif; ?>
                    data-val="0"><a href="<?php echo U('paylog/index',array('type'=>20));?>">退货流水</a></li>
                <li class="
                    <?php if($type==0): ?>active
                    <?php else: ?> normal<?php endif; ?>
                    data-val="1"><a href="<?php echo U('paylog/index',array('type'=>0));?>">购买流水</a></li>
                <li class="
                    <?php if($type==30): ?>active
                    <?php else: ?> normal<?php endif; ?>
                    data-val="2"><a href="<?php echo U('paylog/index',array('type'=>30));?>">提现流水</a></li>
                <li class="
                    <?php if($type==10): ?>active
                    <?php else: ?> normal<?php endif; ?>
                    data-val="2"><a href="<?php echo U('paylog/index',array('type'=>10));?>">充值流水</a></li>

            </ul>
        </div>
        <form method="post" action="<?php echo U(Paylog/index);?>" id="search-form2">
            <table class="search-form">
                <tr>
                    <th>流水号</th>
                    <td class="w150">
                        <input type="text" class="text w150" name="trade_sn" placeholder="流水号" value="<?php echo ($trade_sn); ?>" />
                    </td>
                    <th>支付时间</th>
                    <td class="w378">
                        <select name="pay_name" class="w150 w160 di-in">
                            <option value="0" <?php if($type_time == 0): ?>selected<?php endif; ?>>全部</option>
                            <option value="3" <?php if($type_time == 3): ?>selected<?php endif; ?>>三天内</option>
                            <option value="7" <?php if($type_time == 7): ?>selected<?php endif; ?>>一周内</option>
                        </select>
                    </td>
                    <td>
                        <label class="submit-border">
                            <input type="submit" class="submit" value="搜索" >
                        </label>
                    </td>
                </tr>
            </table>
        </form>
        <div id="ajax_return">
            <table class="ncsc-default-table order">
                <thead>
                <tr>
                    <th class="w100">流水号</th>
                    <th class="w100">支付时间</th>
                    <th class="w100">金额</th>
                    <th class="w90">流水方式</th>
                    <th class="w90">交易方式</th>
                    <th class="w100">状态</th>
                    <th class="w120">生产时间</th>
                    <th class="w120">操作</th>
                </tr>
                </thead>

                <?php if($data): if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                        <td   class="sep-row"><?php echo ($vo["trade_sn"]); ?></td>
                        <td   class="sep-row"><?php echo ($vo["pay_time"]); ?></td>
                        <td  class="sep-row"><?php echo ($vo["pay_money"]); ?></td>
                        <td  class="sep-row"><?php echo ($vo["trade_type"]); ?></td>
                        <td  class="sep-row"><?php echo ($vo["pay_name"]); ?></td>
                        <td  class="sep-row">成功</td>
                        <td   class="sep-row"><?php echo ($vo["add_time"]); ?></td>
                        <td   class="sep-row"><a href="<?php echo U('paylog/info',['id'=>$vo['id']]);?>">查看</a></td>
                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                <tfoot>
                <tr>
                    <td colspan="20">
                        <?php echo ($page); ?>
                    </td>
                </tr>
                </tfoot>
                <?php else: ?>
                    <tr>
                        <td colspan="8"  class="sep-row">无数据</td>
                    </tr><?php endif; ?>
            </table>
        </div>


    </div>
</div>
</div>
<div id="cti">
    <div class="wrapper">
        <ul>
        </ul>
    </div>
</div>
<div id="faq">
    <div class="wrapper">
    </div>
</div>

<div id="footer">
    <p><a href="/">首页</a> | <a href="http://www.tpshop.cn">招聘英才</a> | <a href="http://www.tpshop.cn">合作及洽谈</a> | <a href="http://www.tpshop.cn">联系我们</a> | <a href="http://www.tpshop.cn">关于我们</a> | <a href="http://www.tpshop.cn">物流自取</a> | <a href="http://www.tpshop.cn">友情链接</a>
    </p>
    Copyright 2017 <a href="" target="_blank">7彩商城</a> All rights reserved.

</div>
<script type="text/javascript" src="/public/static/js/jquery.cookie.js"></script>
<link href="/public/static/js/perfect-scrollbar.min.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/public/static/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/public/static/js/qtip/jquery.qtip.min.js"></script>
<link href="/public/static/js/qtip/jquery.qtip.min.css" rel="stylesheet" type="text/css">
<div id="tbox">
    <div class="btn" id="msg"><a href="/index.php/Seller/index/store_msg.html"><i class="msg"><em>1</em></i>站内消息</a></div>
    <div class="btn" id="im"><i class="im"><em id="new_msg" style="display:none;"></em></i><a href="javascript:void(0);">在线联系</a></div>
    <div class="btn" id="gotop" style="display: block;"><i class="top"></i><a href="javascript:void(0);">返回顶部</a></div>
</div>
<script type="text/javascript">
    var current_control = 'Order/index';
    $(document).ready(function() {
        //添加删除快捷操作
        $('[nctype="btn_add_quicklink"]').on('click', function() {
            var $quicklink_item = $(this).parent();
            var item = $(this).attr('data-quicklink-act');
            if ($quicklink_item.hasClass('selected')) {
                $.post("/index.php/Seller/Index/quicklink_del.html", {
                    item: item
                }, function(data) {
                    $quicklink_item.removeClass('selected');
                    var idstr = 'quicklink_' + item;
                    $('#' + idstr).remove();
                }, "json");
            } else {
                var scount = $('#quicklink_list').find('dd.selected').length;
                if (scount >= 8) {
                    layer.msg('快捷操作最多添加8个', {
                        icon: 2,
                        time: 2000
                    });
                } else {
                    $.post("/index.php/Seller/Index/quicklink_add.html", {
                        item: item
                    }, function(data) {
                        $quicklink_item.addClass('selected');
                        if (current_control == 'Index/index') {
                            var $link = $quicklink_item.find('a');
                            var menu_name = $link.text();
                            var menu_link = $link.attr('href');
                            var menu_item = '<li id="quicklink_' + item + '"><a href="' + menu_link + '">' + menu_name + '</a></li>';
                            $(menu_item).appendTo('#seller_center_left_menu').hide().fadeIn();
                        }
                    }, "json");
                }
            }
        });
        //浮动导航  waypoints.js
        $("#sidebar,#mainContent").waypoint(function(event, direction) {
            $(this).parent().toggleClass('sticky', direction === "down");
            event.stopPropagation();
        });
    });
    // 搜索商品不能为空
    $('input[nctype="search_submit"]').click(function() {
        if ($('input[nctype="search_text"]').val() == '') {
            return false;
        }
    });

    function fade() {
        $("img[rel='lazy']").each(function() {
            var $scroTop = $(this).offset();
            if ($scroTop.top <= $(window).scrollTop() + $(window).height()) {
                $(this).hide();
                $(this).attr("src", $(this).attr("data-url"));
                $(this).removeAttr("rel");
                $(this).removeAttr("name");
                $(this).fadeIn(500);
            }
        });
    }
    if ($("img[rel='lazy']").length > 0) {
        $(window).scroll(function() {
            fade();
        });
    };
    fade();

    function delfunc(obj) {
        layer.confirm('确认删除？', {
            btn: ['确定', '取消'] //按钮
        }, function() {
            // 确定
            $.ajax({
                type: 'post',
                url: $(obj).attr('data-url'),
                data: {
                    act: 'del',
                    del_id: $(obj).attr('data-id')
                },
                dataType: 'json',
                success: function(data) {
                    layer.closeAll();
                    if (data == 1) {
                        layer.msg('操作成功', {
                            icon: 1
                        });
                        $(obj).parent().parent().parent().remove();
                    } else {
                        layer.msg(data, {
                            icon: 2,
                            time: 2000
                        });
                    }
                }
            })
        }, function(index) {
            layer.close(index);
            return false; // 取消
        });
    }
</script>
</body>

</html>